package Week.Week317;

import java.util.LinkedList;

public class p1 {
    class Solution {
        public int averageValue(int[] nums) {
            int sum = 0;
            int count = 0;
            for (int i = 0; i < nums.length; i++) {
                if(nums[i] % 3 == 0 && nums[i] / 2 == 0){
                    sum += nums[i];
                    count++;
                }
            }
            return sum / count;
        }
    }
}
